<extend name="Public:from" />
<block name="content">
  <div class="row-fluid">
  <div class="span12">
        <div class="widget-box">

          <div class="widget-content nopadding">
             <form class="form-horizontal" method="post" id="fromitem" onsubmit="ajaxSubmit('fromitem');return false;" action="{:U('AuthRule/edit')}" >
			<input type="hidden" value="{$vo['id']}" name="id" />
              <div class="control-group">
                <label class="control-label">父级菜单:</label>
                <div class="controls">
                  <select name="pid" class="span11">
                   {:R('AuthRule/createTreeSelect',array($vo['pid']),'Model')}
                  </select>
                </div>
              </div>

              <div class="control-group">
                <label class="control-label">菜单名称:</label>
                <div class="controls">
                  <input class="span11" type="text" value="{$vo['title']}" name="title" />
                </div>
              </div>

              <div class="control-group">
                <label class="control-label">规则标识:</label>
                <div class="controls">
                  <input type="text" class="span11" value="{$vo['name']}"  name="name" />
                </div>
              </div>

              <div class="control-group">
                <label class="control-label">ICON标识:</label>
                <div class="controls">
                  <input type="text" class="span11" value="{$vo['icon']}"  name="icon" />
                </div>
              </div>

               <div class="control-group">
              <label class="control-label">是否启用:</label>
              <div class="controls">
                <label>
                  <input type="radio" checked="checked" value="1" name="status" />
                  是</label>
                <label>
                  <input type="radio" value="0" name="status" />
                  否</label>
              </div>
            </div>

              <div class="form-actions">
                <button type="button" onclick="closeParent();" class="btn btn-primary pull-right">取消</button>
                <button type="submit" class="btn btn-success pull-right">保存</button>&nbsp;
              </div>
            </form>
          </div>
        </div>
      </div>
</div>
</block>
